package dto

import "admin-system-go/model"

type PermissionBaseDTO struct {
	ParentId uint   `json:"parentId" form:"parentId"`
	Name     string `json:"name,omitempty" form:"name"`
	Code     uint8  `json:"code" form:"code"`
	State    int8   `json:"state" form:"state"`
	Intro    string `json:"intro,omitempty" form:"intro"`
}

type PermissionDelDTO struct {
	PermissionIds []uint `json:"ids,omitempty" form:"ids"`
}

type PermissionQueryDTO struct {
	model.Model
	PermissionBaseDTO
	model.PageQuery
}

type PermissionUpdateDTO struct {
	Id uint `json:"id" form:"id"`
	PermissionBaseDTO
}
